var mongoose = require('mongoose');
mongoose.Promise = require('bluebird');

require('./model/user.js');
require('./model/car.js');
require('./model/orders.js');
require('./model/jinguan.js')
var dbURI = 'mongodb://47.99.219.121/douban';

mongoose.connect(dbURI);

mongoose.connection.on('connected', function () {
  console.log('Mongoose connected to ' + dbURI);
});
